<?php
	require_once('auth.php');

?>

<html>
<head>
<script language="javascript">
location.replace("Memorandum_admin.php")

</script>
<title>::.::.:: APPMA ::.::.::</title></head>
<body>
		
<?php
$con = mysql_connect("localhost","appma" ,"database");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

	mysql_select_db("162_appma", $con);



$update = mysql_query("DELETE FROM memo WHERE file = '$_GET[file]'");
		if (!$update)
{
echo "not deleted";
}


            unlink("/uploader/memo/".$_GET['file']."");
	mysql_close($con);
?> 


</body>
  </html>                    
                 
